package com.bestcem.xm.label.grpc.service.param.label;

import com.bestcem.xm.common.core.constant.RegTypes;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * 获取标签详情 参数校验
 *
 * @author yf.wang <yf.wang@idiaoyan.com>
 * @version V1.0
 * @date 2021/5/21
 */

@Getter
@Setter
public class GetLabelInfoParam {

    @Size(min = 1, message = "标签id列表不能为空")
    private List<@Pattern(regexp = RegTypes.OBJECT_ID, message = "标签id格式错误") String> ids;

}
